package code.wrtp;

public interface Constants {

	/* Size maximum for any packet */
	public static final byte MAX_PACKAGE_SIZE = 32;
	/* Maximum token passing attempt */
	public static final byte MAX_TRY_TOKEN_PASSING = 3;
	/* Maximum token holding time for jobless node 10 seconds */
	public static final byte MAX_THT_IDLE_NODE = 10;
	/* Maximum number of nodes per Ring */
	public static final byte MAX_NODES_PER_RING = 6;
	/* Maximum broadcast attempting for soliciting slot in a ring */
	public static final byte MAX_BROADCAST_ATTEMPTING = 3;
	/* Maximum number of nodes in the protocol */
	public static final short MAX_NODES_NUMBER = 300;
	/* Broadcast ID "192.168.1.255*/
	public static final short BROADCAST_ADDRESS = 255;
	public static final String BROADCAST_PREFIX = "192.168.1."; 
	/*Number of command to schedule*/
	public static final int NUMBER_OF_SCHEDULE = 3; /*Increase as command increase*/
	/*Holding time before retransmit broadcast*/
	public static final byte BROADCAST_RETRANSMISSION_TIME = 5;
}
